<?php
class ModConnexionVueDefaut
{
	static function HeaderConnexion()
	{
		echo "<a href=\"index.php?module=Connexion&action=formConnexion\">Se Connecter</a>";
	
	}
	static function formConnexion()
	{
		echo '<h1>Formulaire connexion utilisateur</h1>
			<form name ="input" action="index.php" method="get">
				identifiant : <input type="text"name="pseudo"></br>
				mot de passe : <input type="password"name="mdp"></br>
				<input type="hidden" value="Connexion" name="module" />
				<input type="hidden" value="connexion" name="action" />
				<INPUT type="submit" value="Envoyer"></br>
				
			</form>
			<a href="index.php?module=Inscription&action=formInscription">Pas encore inscrit</a>';
	}
	static function connexion($resultat){
		if($resultat == 1)
			echo "connexion réussit";
		else
			echo "erreur de connexion";
		echo' <script>setTimeout(function () {
		window.location.href = "index.php"; //will redirect to your blog page (an ex: blog.html)
		}, 2000); </script>';
	}
	static function deconnexion(){
	echo'deconnexion en cours';
		echo' <script>setTimeout(function () {
       window.location.href = "index.php"; //will redirect to your blog page (an ex: blog.html)
    }, 2000); </script>';
	}


} 